package com.alm.handle.core.domain.entity;

import com.alm.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@TableName("alm_dev_current_data")
public class SysDevCurrentData {

    @TableId(value = "device_id")
    @Excel(name = "设备Mac")
    String deviceId;

    @TableField(value = "voltage")
    @Excel(name = "总电压")
    BigDecimal voltage;

    @TableField(value = "electric_current")
    @Excel(name = "总电流")
    BigDecimal electricCurrent;

    @TableField(value = "active_power")
    @Excel(name = "总有功功率")
    BigDecimal activePower;

    @TableField(value = "frequency")
    @Excel(name = "总频率")
    BigDecimal frequency;

    @TableField(value = "power_factor")
    @Excel(name = "总功率因数")
    BigDecimal powerFactor;

    @TableField(value = "energy")
    @Excel(name = "当前累计用电量")
    BigDecimal energy;

    @TableField(value = "total_energy_last")
    @Excel(name = "上次累计用电总量")
    BigDecimal totalEnergyLast;

    @TableField(value = "total_energy")
    @Excel(name = "累计用电总量")
    BigDecimal totalEnergy;

    @TableField(exist = false)
    @Excel(name = "在线状态")
    Integer onlineStatus;

    @TableField(value = "relay_status")
    @Excel(name = "继电器状态")
    Integer relayStatus;

    @TableField(value = "work_status")
    @Excel(name = "工作状态")
    Integer workStatus;

    @TableField(value = "modify_time")
    @Excel(name = "更新时间")
    Long modifyTime;

    @TableField(value = "remark")
    @Excel(name = "备注")
    String remark;

    @TableField(value = "temperature")
    @Excel(name = "温度")
    Integer temperature;

    @TableField(value = "switch_status")
    @Excel(name = "默认开关状态")
    Integer switchStatus;

    @TableField(value = "network_type")
    @Excel(name = "当前网络传输状态")
    Integer networkType;

    @TableField(value = "prow_id")
    @Excel(name = "上电id")
    Integer powerId;

    @TableField(value = "line_num")
    @Excel(name = "行数")
    Integer lineNum;

    @TableField(value = "save_his")
    @Excel(name = "是否保存")
    Integer saveHis;

}
